#include <bits/stdc++.h>

using namespace std;

class Solution {
   public:
    string categorizeBox(int length, int width, int height, int mass) {
        bool Hevay = false, Bulky = false;
        if (length >= 1e4 || width >= 1e4 || height >= 1e4 ||
            (long long)length * width * height >= 1e9) {
            Bulky = true;
        }
        if (mass >= 1e2) {
            Hevay = true;
        }
        if (Bulky && Hevay) {
            return "Both";
        } else if (Bulky) {
            return "Bulky";
        } else if (Hevay) {
            return "Heavy";
        }
        return "Neither";
    }
};